package code.example.zookeeper.zk;

import org.apache.zookeeper.WatchedEvent;

/**
 * 记录 监控源，操作，事件关系
 */
public class TriggerEvent {
    String watchSource;
    String operation;
    WatchedEvent watchedEvent;

    public String getWatchSource() {
        return watchSource;
    }

    public void setWatchSource(String watchSource) {
        this.watchSource = watchSource;
    }

    public String getOperation() {
        return operation;
    }

    public void setOperation(String operation) {
        this.operation = operation;
    }

    public WatchedEvent getWatchedEvent() {
        return watchedEvent;
    }

    public void setWatchedEvent(WatchedEvent watchedEvent) {
        this.watchedEvent = watchedEvent;
    }
    public void printLog(){
        System.out.println("watchSource:"+watchSource+",operation"+operation+",watchedEvent:"+watchedEvent);
    }
}
